﻿using System;
using System.Collections.Generic;
using System.Text;

namespace sands
{
    class Checker
    {
        public static bool isValidString(string test)
        {
            return test.IndexOfAny("1234567890~!@#$%^&*()=+{}][;:.\"|\\<>/?".ToCharArray()) == -1;
        }

        public static bool isUint(string test)
        {
            if (test.Length != 0)
            {
                uint tmp = 0;
                return uint.TryParse(test, out tmp);
            }
            else
                return true;
        }
        public static bool isNumber(string test)
        {
            if (test.Length != 0)
            {
                long tmp = 0;
                test=test.Replace(" ","");
                return long.TryParse(test, out tmp);
            }
            else
                return true;
            
        }
    }
}
